package com.example.springbook.Model;

import lombok.Data;

@Data
public class PageRequest {
    public Integer pageSize=10;
    public Integer pageNum;


    public Integer offest;


    public Integer getOffest() {
        return (pageNum-1)*pageSize;
    }
}
